<h1>Mostrar Cuidado y Mantenimiento </h1>
<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<div class="shadow">
  
    <fieldset id="agrupacion">
      <legend>Datos Básicos </legend>

     <fieldset class="column-left">
 <p>
  <b>Encargado:</b>
  <%= @cultural_heritage_care_and_maintenance.obj_security_people.name + " " + @cultural_heritage_care_and_maintenance.obj_security_people.lastname %>
</p>


<p>
  <b>Description:</b>
  <%= @cultural_heritage_care_and_maintenance.description %>
</p>

<p>
  <b>Fecha Inicio:</b>
  <%= @cultural_heritage_care_and_maintenance.start_date.strftime("%d/%m/%Y") %>
</p>

<p>
  <b>Fecha Fin:</b>
  <%= @cultural_heritage_care_and_maintenance.end_date.strftime("%d/%m/%Y") %>
</p>
     </fieldset>

      <fieldset class="column-right">

 <% if !@cultural_heritage_care_and_maintenance.obj_cultural_heritage.obj_culturalInstitution.nil?%>
 <p>
  <b>Institucion Cultural:</b>
  <%= link_to @cultural_heritage_care_and_maintenance.obj_cultural_heritage.obj_culturalInstitution.name,{:controller=>"/cultural_heritage/cultural_institutions",:action => 'show',:id => @cultural_heritage_care_and_maintenance.obj_cultural_heritage.obj_culturalInstitution.id},:title => @cultural_heritage_care_and_maintenance.obj_cultural_heritage.obj_culturalInstitution.name%>
</p>

<%end%>
<%if @cultural_heritage_care_and_maintenance.obj_cultural_heritage.group==1 %>
<p>
  <b>Patrimonio Cultural:</b>
  <%= link_to @cultural_heritage_care_and_maintenance.obj_cultural_heritage.name,{:controller=>"/cultural_heritage/cultural_heritages",:action => 'show',:id => @cultural_heritage_care_and_maintenance.obj_cultural_heritage.id },:title => @cultural_heritage_care_and_maintenance.obj_cultural_heritage.name%>
</p>
<%else%>
<p>
<b>Patrimonio Cultural:</b>
  <%= link_to @cultural_heritage_care_and_maintenance.obj_cultural_heritage.name,{:controller=>"/cultural_heritage/cultural_heritage_properties",:action => 'show',:id => @cultural_heritage_care_and_maintenance.obj_cultural_heritage.id },:title => @cultural_heritage_care_and_maintenance.obj_cultural_heritage.name%>
</p>
<%end%>
<p>
  <b>Tipo:</b>
  <%= @cultural_heritage_care_and_maintenance.obj_care_and_maintenance_type.name %>
</p>

<p>
  <b>Magnitud:</b>
  <%= @cultural_heritage_care_and_maintenance.str_mayor %>
</p>

<p>
  <% if !@cultural_heritage_care_and_maintenance.obj_care_and_maintenance_inst_cultural.blank? %>
    <b>Registrado por:</b>
  <%= @cultural_heritage_care_and_maintenance.obj_care_and_maintenance_inst_cultural.name + " " + 
      @cultural_heritage_care_and_maintenance.obj_care_and_maintenance_inst_cultural.lastname %>
  <%  end %>
</p>

<p>
  <% if !@cultural_heritage_care_and_maintenance.obj_care_and_maintenance_supervisor.blank? %>
    <b>Revisado por supervisor:</b>
  <%= @cultural_heritage_care_and_maintenance.obj_care_and_maintenance_supervisor.name + " " +
      @cultural_heritage_care_and_maintenance.obj_care_and_maintenance_supervisor.lastname %>
  <%  end %>
</p>

<p>
  <% if !@cultural_heritage_care_and_maintenance.obj_care_and_maintenance_expert.blank? %>
    <% if @cultural_heritage_care_and_maintenance.str_mayor == "Mayor"%>
        <b>Revisado por experto:</b>
      <%= @cultural_heritage_care_and_maintenance.obj_care_and_maintenance_expert.name + " " +
          @cultural_heritage_care_and_maintenance.obj_care_and_maintenance_expert.lastname %>
    <%  end %>
  <%  end %>
</p>


<p>
  <b>Aprobacion:</b>
  <%= @cultural_heritage_care_and_maintenance.str_proceed %>
</p>
      </fieldset>
  </fieldset>
</div>

<%= link_to 'Editar', edit_cultural_heritage_care_and_maintenance_path(@cultural_heritage_care_and_maintenance) %> |
<%= link_to 'Regresar', cultural_heritage_care_and_maintenances_path %> |
<%= link_to 'Exportar a PDF',{:controller => '/report/care_and_maintenance_report', :action => 'pdf_export', :id => @cultural_heritage_care_and_maintenance.id}%>
